home *** CD-ROM | disk | FTP | other *** search
/ Visual Basic Toolbox / Visual Basic Toolbox (P.I.E.)(1996).ISO / forms / refresh / refresh.frm (.txt) < prev    next >
Encoding:
Visual Basic Form  |  1991-07-30  |  4.6 KB  |  119 lines

  1. Form1
  2. REFRESH DEMO
  3. wwwwwwwwwwwwwwp
  4. wwwwwwwwwwwwww
  5. Form1
  6. cmbDemo
  7. START DEMO
  8. Label3
  9. Width =
  10. txbWidthValue
  11. Label1
  12. ,Changing Width Value With VB's Idle Refresh.
  13. txbNonRefComment
  14. txbNonRefreshed
  15. Label2
  16. ,Changing Width Value Using Explicit Refresh.
  17. txbRefComment
  18. txbRefreshed
  19. mnuHelp
  20. &Help
  21. mnuNotes
  22.     &Notes...
  23. mnuAbout
  24.     &About...
  25. Text1_Change
  26. Peter
  27. shithead
  28. Text1
  29. CaptionG
  30. Command1_Click
  31. Command1_KeyPress=
  32. KeyAscii#
  33. Text2w
  34. width
  35. text3]
  36. Text3_Change
  37. Form_Click4
  38. txbRefreshed
  39. txbWidthValue
  40. txbNonRefreshed
  41. cmbDemo_Click
  42. without
  43. proper~
  44. repetative
  45. txbNonRefCommentK
  46. txbRefComment
  47. cmbDemo
  48. Enable
  49. TRUEA
  50. FalsetxbNonRefComment
  51. FALSE
  52. Enabled#
  53. mnuNotes_Click
  54. InfoBox*
  55. mnuAbout_Clickm
  56. msgNotes}
  57. ttlNotes
  58. msgHelpAbout$
  59. ttlHelpAbout
  60. msgHelpNotes2
  61. ttlHelpNotesV
  62. msgHelpAbout2C
  63. msgHelpAbout1
  64.     Hartquist
  65.     Generally
  66. CHEDRefresh
  67. refreshing
  68. happens
  69. automatically
  70. wheni
  71. reached
  72. example
  73. created
  74.     situation
  75. demonstrate
  76. effects
  77.     refeshingh
  78. Who Done It?
  79. Just for fun - Peter Hartquist 73227,3600"
  80. What Does It Do?
  81. According the the Language Reference manual, refreshing a form or control happens automatically when VB's idle loop is reached.  This demo shows the effect of explicitly using Refresh on a dynamically changing control.
  82. cmbDemo_Click
  83.    According the the Visual Basic Language Reference manual, refreshingg
  84.    a form or control happens automatically when VB's idle loop is reached.
  85.    In this example I have created a situation to demonstrate
  86.    the effects of using or not using Refesh on a control
  87.    (a text box) while it repetitively changes in width..
  88.    I have created two similar controls on the form.  One text box changes
  89.    without using Refresh and one changes with Refresh on each change.n
  90.    It looks like Refresh is not necessary when decreasing the width of a
  91.    text box control.  It actually causes jitter in the redrawn image.n
  92.    But Refresh is needed to see the effects of repetitively increasing
  93.    the width of the text box.  Without Refresh, the text box doesn't
  94.    display with its' correct width until the repetitive changes have
  95.    all been completed.
  96. Smooth
  97. Comments while
  98. Jitters a bit"
  99. Width decreasesW
  100. Initial Textbox Width = 4500
  101. Handle low wdith value
  102. Avoid low or zero I valuer
  103. Wrong Width"
  104. Comments while
  105. Correct Width"
  106. Width increasesd
  107. Display Width Valuer
  108. Change Textbox 1 without Refresh
  109. Change Testbox 2
  110. With Refresh
  111. Loop till done
  112. Correct Width At Last"
  113. Comments
  114. Correct Width"
  115. when doneo
  116. SEE IT AGAIN ?
  117. mnuNotes_Click
  118. mnuAbout_Click
  119.